<?php
/* @var $this WordRootController */
/* @var $data WordRoot */

?>

<div class="view">
	<div class="wordbox">
	
	<h2 class="keyword"><?php echo CHtml::link(CHtml::encode($data->word->word), array('word/view', 'id'=>$data->word_id)); ?> 
	<?php if(!Yii::app()->user->isGuest){ echo  CHtml::link(CHtml::encode("添加词缀"), array('word/addFix', 'id'=>$data->word_id));}?>
	</h2>
	<?php echo $this->renderPartial('/word/_pronouciation', array('data'=>$data->word)); ?>
	
	<div id="moreRootInfo<?php echo $data->word_id;?>" ><a href='<?php echo CHtml::normalizeUrl(array('wordRoot/explanation', 'id'=>$data->id));?>' data-id="<?php echo $data->word_id;?>" class="rootMoreInfoA">查看答案</a></div>
</div>
</div>
<?php 
Yii::app()->getClientScript()->registerScriptFile('http://ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js');
Yii::app()->getClientScript()->registerCssFile(Yii::app()->request->baseUrl.'/css/ui.tabs.css');
Yii::app()->getClientScript()->registerScriptFile( Yii::app()->request->baseUrl.'/js/ui.tabs.js');
Yii::app()->getClientScript()->registerCssFile(Yii::app()->request->baseUrl.'/css/ui.tabs.css');
Yii::app()->getClientScript()->registerScriptFile( Yii::app()->request->baseUrl.'/js/share.js');
Yii::app()->getClientScript()->registerScriptFile( Yii::app()->request->baseUrl.'/js/voice.js');
Yii::app()->getClientScript()->registerScriptFile( Yii::app()->request->baseUrl.'/js/moreInfo.js');
?>
<script>
$(document).ready(function(){
$('.boxP').tabs({ fxFade: true, fxSpeed: 'fast' });});
</script>